package org.yzl.designPatterns.proxy.impl;

import org.yzl.designPatterns.proxy.IProxy;

public class ProxyImpl implements IProxy {
    SourceImpl sourceImpl;
    public ProxyImpl(){
        this.sourceImpl = new SourceImpl();
    };
    @Override
    public void mothod() {
        System.out.println("this is proxy before");
        sourceImpl.mothod();
        System.out.println("this is proxy after");
    }
}
